package com.dayu.finecomm.protocol.pojo;

import java.util.Date;

/**
 * @ClassName: TSwitch
 * @Description:TODO
 * @author: 戴卫国
 * @date: 2018年7月23日 下午1:03:01
 * 
 * @Copyright: 2018 dayu Inc. All rights reserved.
 */
public class TSwitch {
	public int value = -1;
	public int value1 = -1;
	public short status = -1;
	public long time = 0;
	public long pertime = 0;
	public int serial = 0;

	/**
	 * 运行指针
	 */
	public int efficiencyIndex = 0;
	/**
	 * 运行时间
	 */
	public int[] efficiency = new int[48];
	/**
	 * 运行速度
	 */
	public int[] speed = new int[48];
	/**
	 * 满停次数
	 */
	public int[] stoptimes_29 = new int[48];
	/**
	 * 耳停次数
	 */
	public int[] stoptimes_27 = new int[48];
	/**
	 * 违停次数
	 */
	public int[] stoptimes_23 = new int[48];
	/**
	 * 其他停止次数
	 */
	public int[] stoptimes_31 = new int[48];
	/**
	 * 补包停止次数
	 */
	public int[] stoptimes_101 = new int[48];
	/**
	 * 未知停止次数
	 */
	public int[] stoptimes_201 = new int[48];

	@SuppressWarnings("deprecation")
	public TSwitch() {
		efficiencyIndex = (new Date().getMinutes() + new Date().getHours() * 60) / 30;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public int getSerial() {
		return serial;
	}

	public void setSerial(int serial) {
		this.serial = serial;
	}

	public int getValue1() {
		return value1;
	}

	public void setValue1(int value1) {
		this.value1 = value1;
	}

	public int[] getEfficiency() {
		return efficiency;
	}

	public void setEfficiency(int[] efficiency) {
		this.efficiency = efficiency;
	}

	public int getEfficiencyIndex() {
		return efficiencyIndex;
	}

	public void setEfficiencyIndex(int efficiencyIndex) {
		this.efficiencyIndex = efficiencyIndex;
	}

	public int[] getStoptimes_29() {
		return stoptimes_29;
	}

	public void setStoptimes_29(int[] stoptimes_29) {
		this.stoptimes_29 = stoptimes_29;
	}

	public int[] getStoptimes_27() {
		return stoptimes_27;
	}

	public void setStoptimes_27(int[] stoptimes_27) {
		this.stoptimes_27 = stoptimes_27;
	}

	public int[] getStoptimes_23() {
		return stoptimes_23;
	}

	public void setStoptimes_23(int[] stoptimes_23) {
		this.stoptimes_23 = stoptimes_23;
	}

	public int[] getStoptimes_31() {
		return stoptimes_31;
	}

	public void setStoptimes_31(int[] stoptimes_31) {
		this.stoptimes_31 = stoptimes_31;
	}

	public int[] getStoptimes_101() {
		return stoptimes_101;
	}

	public void setStoptimes_101(int[] stoptimes_101) {
		this.stoptimes_101 = stoptimes_101;
	}

	public int[] getStoptimes_201() {
		return stoptimes_201;
	}

	public void setStoptimes_201(int[] stoptimes_201) {
		this.stoptimes_201 = stoptimes_201;
	}

	public int[] getSpeed() {
		return speed;
	}

	public void setSpeed(int[] speed) {
		this.speed = speed;
	}

	public long getPertime() {
		return pertime;
	}

	public void setPertime(long pertime) {
		this.pertime = pertime;
	}

}
